import * as types from './mutation_types'
import { RootStateTypes } from './types'
const mutations = {
  [types.SET_NAME](state: RootStateTypes, name: string) {
    state.name = name
  },
  [types.SET_USER](state: RootStateTypes, user: any) {
    state.user = user
  },
}

export default mutations
